/*
 * @Author: 李荣辉
 * @Date: 2025-03-18 22:18:48
 * @LastEditTime: 2025-03-18 22:18:57
 * @FilePath: /haiyang-ui/tailwind.config.js
 */
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ["./src/**/*.{html,js}"],
  theme: {
    extend: {
      colors: {
        primary: "#409EFF",
      },
      fontsize: {
        12: "12px",
        14: "14px",
        16: "16px",
        18: "18px",
        20: "20px",
        22: "22px",
        24: "24px",
        26: "26px",
        28: "28px",
        30: "30px",
        32: "32px",
        34: "34px",
        36: "36px",
      },
      spacing(config) {
        let result = { 0: "0" };
        // 允许的数值大一些也无所谓，最后打包tailwindcss会摇树优化，未使用的样式并不会打包
        for (let i = 1; i <= 999; i++) {
          result[i] = `${i}px`;
        }
        return result;
      },
      backgroundImage: {
        "primary-gradient": "linear-gradient(200deg, #409EFF 0%, #67C23A 100%)",
      },
      borderColor: {
        primary: "#409EFF",
      },
      borderWidth: {
        1: "1px",
        2: "2px",
        4: "4px",
        6: "6px",
      },
    },
  },
  plugins: [],
  corePlugins: {
    preflight: false, // 关闭默认样式
  },
};
